package com.bank.um.service;

import com.bank.entity.Member;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author: Lixy
 * @email: 1908598362@qq.com
 * @date: 2022/1/24 星期一 23:01
 */
public interface MemberService extends IService<Member> {

    List<Member> listAll();

    int addMember(Long age,String name,Long memcardnum,String phone,String password);

    Member SelectByPass(String name,String password);

    Member SelectById(String id);

    Member SelectByPhone(String phone);

    boolean getVcode(String phone, String code);

    Member SelectByCoolredis(String uuid, HttpServletResponse response, HttpServletRequest request);

    int UpdateMemPhone(Member member,String newPhone);

    int UpdateMemNameOrPass(Member member,String newPassword,String newName,String uuid);

    boolean getPcode(String phone,String code);

    String addByCookie(HttpServletRequest request,HttpServletResponse response,Member member);
}
